package cn.bandeqing.wechatminiapp.req;

import cn.bandeqing.frame.validation.Phone;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

@Data
public class CustomerAddressSaveOrUpdateReq implements Serializable {

    @Schema(description = "地址ID")
    private Long addressId;

//    private Integer customerId;

    @NotBlank
    @Schema(description = "客户名称")
    private String customerName;

    @NotBlank
    @Phone
    @Schema(description = "客户电话")
    private String customerPhone;

    @NotBlank
    @Schema(description = "地址")
    private String addressName;

    @Schema(description = "详细地址补充")
    private String addressDetail;

    @NotNull
    private Double addressLat;

    @NotNull
    private Double addressLng;

    @Schema(description = "楼层")
    private Integer floor;

    @Schema(description = "是否有电梯")
    private Boolean elevator;


}
